﻿<%@ Page Title="" Language="C#" MasterPageFile="~/App/Views/Shared/Site.Master" AutoEventWireup="true" CodeBehind="Category.aspx.cs" Inherits="aspZone.Commerce.Web.App.Views.Catalog.Category" %>
<asp:Content runat="server" ContentPlaceHolderID="BreadCrumbs">
<%= Html.ActionLink("Home", "Index", "Home") %> &gt;
<% if (ViewData.Model.Category.ParentCategory != null) { %>
<% Html.RenderPartial("CategoryBreadCrumbItem", ViewData.Model.Category.ParentCategory); %>
<% } %>
 <%= Html.Encode(ViewData.Model.Category.Name) %>
</asp:Content>

<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">
<h1><%= Html.Encode(ViewData.Model.Category.Name) %></h1>
<p><%= Html.Encode(ViewData.Model.Category.Description) %></p>

<ul class="productlist">
<% foreach (var product in ViewData.Model.Products) { %>
    <li>
        <% Html.RenderPartial("ProductThumbnail", product); %>
    </li>
<% } %>
</ul>

</asp:Content>
